import request from '@/utils/http'

/**
 * 获取班级人数
 * @returns
 */
export const getClassApi = () => {
  return request({
    method: 'get',
    url: 'api/echart/class',
  })
}

/**
 * 获取专业人数
 * @returns
 */
export const getMajorPersonApi = () => {
  return request({
    method: 'get',
    url: 'api/echart/majorPerson',
  })
}

/**
 * 获取男女比列
 * @returns
 */
export const getMenWomenApi = () => {
  return request({
    method: 'get',
    url: 'api/echart/menWomen',
  })
}

/**
 * 获取成绩
 * @returns
 */
export const getGradeApi = (params) => {
  return request({
    method: 'get',
    url: 'api/echart/grade',
    params,
  })
}
/**
 * 获取考试名称
 * @returns
 */
export const getNameApi = () => {
  return request({
    method: 'get',
    url: 'api/echart/name',
  })
}
